<?php
namespace App;

use Illuminate\Http\JsonResponse;
use Illuminate\Support\Facades\Response as FacadesResponse;

// 自定义响应
class Response
{
    /**
     * json数据响应
     * @param array $data 响应数据
     * @return JsonResponse
     */
    public static function json( $data ): JsonResponse
    {
        return FacadesResponse::json( $data );
    }
}